﻿using System.Windows;

namespace HlELock.Core
{
    public static class AppHelper
    {
        public static string GetResourceString(params string[] keys)
        {
            var str = "";
            foreach (var item in keys)
            {
                var res = Application.Current.TryFindResource(item);
                str += res == null ? item : res.ToString();
            }
            return str;
        }
        public static string[] GetStrings(string key)
        {
            var result = Application.Current.FindResource(key) as string[];
            return result;
        }
    }
}
